package cn.tedu.controller;

import cn.tedu.pojo.Student;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


//接收浏览器发来的数据
@RestController
@RequestMapping("/stu")
@CrossOrigin(origins = "*")
public class StuController {
    //接收浏览器form里提交来的数据
    @RequestMapping("/add")
    public Student add(Student s){
        System.out.println(s);
        return s;
    }
}
